<?php

namespace app\index\controller;
use think\Session;

use think\Controller;
use think\Request;
header("content-type:text/html;charset=utf-8");

class Common extends Controller
{
    // tp的构造方法
    public function _initialize ()
    {
        if ( session('id') == NULL) {
            $this->error('请登录' , url('log/login'));
        }
    }
}
?>
